package com.wlsmartlock.API;

import com.wlsmartlock.Beans.HttpResult;
import com.wlsmartlock.Beans.QueryResultBean;
import com.wlsmartlock.Beans.UserBean;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;

public interface ApiInterface {

    @POST("login")
    Observable<HttpResult<String>> auth(@Body String str);

    @POST("OrgQuery/{querystr}")
    Observable<HttpResult<QueryResultBean>> getOrglist(@Path("querystr") String querystr);

}
